import 'package:flutter/material.dart';
import 'package:flutterdemo4/buttondemo.dart';
import 'textdemo.dart';
import 'buttondemo.dart';
import 'imagedemo.dart';
import 'iconfong.dart';
import 'checkboxdemo.dart';
import 'editdemo.dart';
import 'progressdemo.dart';
import 'constraintsdemo.dart';
import 'rowdemo.dart';
import 'flexdemo.dart';
import 'paddingdemo.dart';
import 'wrapdemo.dart';
import 'stackdemo.dart';
import 'columndemo.dart';


import 'crc16.dart';

void main() {
  runApp(  MaterialApp(
    title: 'hello APP',
    theme: ThemeData(
      cardColor: Colors.red
    ),
    home: Scaffold(
      appBar: AppBar(

      ),
      backgroundColor: Colors.white,
      // body: Imagedemo.getImageListView(),
      // body: Iconfong.getIconfontListView(),
      // body: Checkboxdemo.getListView(),
      // body: Editdemo.getListView(),
      // body: Progressdemo.getListView(),
      // body: Constraintsdemo.getWidget4(),
      // body: Rowdemo.getListView(),
      // body: Columndemo.getWidget(),
      body: Rowdemo.getWidget2(),
      // body: Flexdemo.getListView(),
      // body: Paddingdemo.getWidget(),
      // body: Wrapdemo.getWidget(),
      // body: Stackdemo.getWidget(),
      // body: Textdemo.getListView(),
      // body: ListView(
      //   children: [
      //     Textdemo.getText()
      //     ,Textdemo.getText2()
      //     ,Textdemo.getText3()
      //     ,Textdemo.getText4()
      //     ,Buttondemo.getButton()
      //     ,Buttondemo.getButton2()
      //     ,Buttondemo.getButton3()
      //     ,Buttondemo.getButton4()
      //     ,Buttondemo.getButton5()
      //     ,Buttondemo.getButton6()
      //     ,Buttondemo.getButton7()
      //     ,Imagedemo.getImage()
      //     ,Imagedemo.getImage2()
      //     ,Imagedemo.getImage3()
      //     ,Imagedemo.getImage4()
      //   ],
      // ),
      floatingActionButton: FloatingActionButton(
          onPressed:click
      ),
    ),
  ));
}

void click(){
  print('hello world ddd');
}

class MyText extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    Textdemo.testPrint();
    debugPrint("hello world dddd");
    print('hello world ddd');
    return MyTextState();
  }

}

class MyTextState extends State<MyText>{
  @override
  Widget build(BuildContext context) {
    return Text('haha');
  }

}



